package com.zyong.design.pattern.iterator.case1;

/**
 * 抽象聚合(容器)角色接口
 * @program: zyong-design-pattern
 * @ClassName: StudentAggregate
 * @author: zyong
 * @create: 2024-06-01 08:26
 */
public interface StudentAggregate {
    /**
     * 添加学生
     * @param student
     */
    void addStudent(Student student);

    /**
     * 删除学生
     * @param student
     */
    void removeStudent(Student student);

    /**
     * 获取迭代器对象
     * @return
     */
    StudentIterator getStudentIterator();
}
